package com.lxm.ymcc.feginClient;

import com.lxm.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/*
    1.导包
 */
@FeignClient(value = "service-course",fallback = CourseControllerFallBack.class)
public interface CourserFileFeign {
    @GetMapping(value = "/course/courseState/{id}")
    public JSONResult courseStateById(@PathVariable Long id);


    @GetMapping(value = "/course/info/{id}")
    public JSONResult courseInfo(@PathVariable("id") String id);


}

